<template>
  <div class="test">
    <a href="#">荒の小屋</a>
  </div>
</template>

<style scoped lang="scss">
.test {
  position: relative;
  height: 100vh;
}
@keyframes tipsy {
  0% {
    transform: translateX(-50%) translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateX(-50%) translateY(-50%) rotate(360deg);
  }
}

body {
  font-family: '黑体';
  background-color: #555;
}

a {
  color: #fffbf1;
  text-shadow: 0 20px 25px #2e2e31;
  font-size: 50px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

a:before,
a:after {
  content: '';
  padding: 0.9em 0.4em;
  position: absolute;
  left: 50%;
  width: 100%;
  top: 50%;
  display: block;
  border: 10px solid skyblue;
  transform: translateX(-50%) translateY(-50%) rotate(0deg);
  animation: 10s infinite alternate ease-in-out tipsy;
}

a:before {
  border-color: skyblue skyblue rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
  z-index: -1;
}

a:after {
  border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) skyblue skyblue;
  box-shadow: 25px 25px 25px rgba(46, 46, 49, 0.8);
}
</style>
